package com.uk.ui.manaxhim;

import com.uk.data.containers.UserContainer;
import com.uk.myclasses.ATable;
import com.uk.ui.ColumnGeneratorUtils;
import com.vaadin.event.ItemClickEvent.ItemClickListener;

public class UserList extends ATable{

	public UserList(ManaxhimPanel manaxhimPanel) {
		super();
		setSizeFull();
		this.setContainerDataSource(manaxhimPanel.getUserContainer());
		this.setVisibleColumns(UserContainer.NATURAL_COL_ORDER);
		this.setColumnHeaders(UserContainer.COL_HEADERS_ALBANIAN);
		this.setPageLength(10);
		setSelectable(true);
		setImmediate(true);
		setNullSelectionAllowed(false);
		this.addGeneratedColumn("locked", ColumnGeneratorUtils.PoJoColumnGenerator());
		this.addListener((ValueChangeListener)manaxhimPanel);
	}

}
